home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 82 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: news.rmii.com!usenet
  2. From: jcoffin@rmii.com (Jerry Coffin)
  3. Newsgroups: comp.std.c
  4. Subject: Re: int's and zero
  5. Date: Thu, 11 Jan 1996 23:10:15 GMT
  6. Organization: TAEUS
  7. Message-ID: <4d41dk$o84@natasha.rmii.com>
  8. References: <4cth4e$4q@odin.funcom.no> <4cub1a$jbl@alterdial.UU.NET> <4d12qv$fir@natasha.rmii.com> <DKzpI8.8Kx@stdc.demon.co.uk>
  9. NNTP-Posting-Host: slip8150.rmii.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. clive@stdc.demon.co.uk (Clive D.W. Feather) wrote:
  13.  
  14. >In article <4d12qv$fir@natasha.rmii.com>,
  15. >Jerry Coffin <jcoffin@rmii.com> wrote:
  16. >> Yes -- in one's complement, `-0' is represented with all bits set to 1.
  17. >> With one's complement, the usual method of testing for 0 is something
  18. >> like: `if (x+0 == 0)' since the addition of 0 normally produces a
  19. >> positive 0.
  20.  
  21. >The C Standard requires +0 and -0 to compare equal to each other.
  22.  
  23. Sorry.  I should have been more explicit - the "something like" was
  24. meant to imply that this had to happen internally, not that it would be
  25. included in the source code.
  26.     Later,
  27.     Jerry.
  28.  
  29. /* I can barely express my own opinions; I certainly can't
  30.  * express anybody else's.
  31.  *
  32.  * The universe is a figment of its own imagination.
  33.  */
  34.  
  35.